<%@page pageEncoding="UTF-8" isELIgnored="false" session="false"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@taglib prefix="f" uri="http://www.slim3.org/functions"%>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<script
	src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js">

</script>
<link rel="stylesheet" href="/lib/bootstrap/css/bootstrap.min.css">
<link rel="stylesheet" href="/lib/bootstrap/css/bootstrap-responsive.min.css">
<link rel="stylesheet" href="/css/global.css">
<title>TwitCockpit α</title>
</head>
<body>
	<div class="topbar" data-dropdown="dropdown">
		<div class="navbar navbar-fixed-top">
			<div class="navbar-inner">
				<div class="container-fluid">
					<a class="brand" href="/">TwitCockpit α</a>
					<div class="nav-collapse">
						<ul class="nav">

						</ul>
					</div>
				</div>
			</div>
		</div>
	</div>
	<div class="container-fluid">
		<div class="row-fluid">
			<div class="span3">
				<script src="http://widgets.twimg.com/j/2/widget.js">

				</script>
				<script>
					new TWTR.Widget({
						version : 2,
						type : 'search',
						search : '#ChugokuGTUG',
						interval : 30000,
						title : 'ChugokuGTUG',
						subject : '',
						width : 220,
						height : 600,
						theme : {
							shell : {
								background : '#f5f5f5',
								color : '#444444'
							},
							tweets : {
								background : '#ffffff',
								color : '#444444',
								links : '#1985b5'
							}
						},
						features : {
							scrollbar : true,
							loop : true,
							live : true,
							hashtags : true,
							timestamp : true,
							avatars : true,
							toptweets : true,
							behavior : 'default'
						}
					}).render().start();
				</script>
			</div>
			<div class="span9">
				<c:forEach var="e" items="${f:errors()}">
					<li>${f:h(e)}</li>
				</c:forEach>
				<form class="form-horizontal" method="post"
					action="/cockpit/schedule/entry" id="entryForm">
					<input type="hidden" ${f:hidden("id")} />
					<fieldset>
						<legend>定期Post設定</legend>
						<div class="control-group">
							<label class="control-label" for="select01">つぶやく内容</label>
							<div class="controls">
								<textarea name="tweet">${f:h(tweet)}</textarea>
							</div>
						</div>
						<div class="control-group">
							<label class="control-label" for="inlineCheckboxes">曜日</label>
							<div class="controls">
								<label class="checkbox inline"> <input type="checkbox"
									name="weekCheckbox1" value="1" ${f:checkbox("weekCheckbox1")}>日
								</label> <label class="checkbox inline"> <input type="checkbox"
									name="weekCheckbox2" value="2" ${f:checkbox("weekCheckbox2")}>月
								</label> <label class="checkbox inline"> <input type="checkbox"
									name="weekCheckbox3" value="3" ${f:checkbox("weekCheckbox3")}>火
								</label> <label class="checkbox inline"> <input type="checkbox"
									name="weekCheckbox4" value="4" ${f:checkbox("weekCheckbox4")}>水
								</label> <label class="checkbox inline"> <input type="checkbox"
									name="weekCheckbox5" value="5" ${f:checkbox("weekCheckbox5")}>木
								</label> <label class="checkbox inline"> <input type="checkbox"
									name="weekCheckbox6" value="6" ${f:checkbox("weekCheckbox6")}>金
								</label> <label class="checkbox inline"> <input type="checkbox"
									name="weekCheckbox7" value="7" ${f:checkbox("weekCheckbox7")}>土
								</label>
							</div>
						</div>
						<div class="control-group">
							<label class="control-label" for="startdate">開始日</label>
							<div class="controls">
								<select class="span1" name="startyear">
									<option ${f:select("startyear", "2012")}>2012</option>
									<option ${f:select("startyear", "2013")}>2013</option>
									<option ${f:select("startyear", "2014")}>2014</option>
									<option ${f:select("startyear", "2015")}>2015</option>
								</select>年 <select class="span1" name="startmonth">
									<option ${f:select("startmonth", "1")}>1</option>
									<option ${f:select("startmonth", "2")}>2</option>
									<option ${f:select("startmonth", "3")}>3</option>
									<option ${f:select("startmonth", "4")}>4</option>
									<option ${f:select("startmonth", "5")}>5</option>
									<option ${f:select("startmonth", "6")}>6</option>
									<option ${f:select("startmonth", "7")}>7</option>
									<option ${f:select("startmonth", "8")}>8</option>
									<option ${f:select("startmonth", "9")}>9</option>
									<option ${f:select("startmonth", "10")}>10</option>
									<option ${f:select("startmonth", "11")}>11</option>
									<option ${f:select("startmonth", "12")}>12</option>
								</select> 月 <select class="span1" name="startday">
									<option ${f:select("startday", "1")}>1</option>
									<option ${f:select("startday", "2")}>2</option>
									<option ${f:select("startday", "3")}>3</option>
									<option ${f:select("startday", "4")}>4</option>
									<option ${f:select("startday", "5")}>5</option>
									<option ${f:select("startday", "6")}>6</option>
									<option ${f:select("startday", "7")}>7</option>
									<option ${f:select("startday", "8")}>8</option>
									<option ${f:select("startday", "9")}>9</option>
									<option ${f:select("startday", "10")}>10</option>
									<option ${f:select("startday", "11")}>11</option>
									<option ${f:select("startday", "12")}>12</option>
									<option ${f:select("startday", "13")}>13</option>
									<option ${f:select("startday", "14")}>14</option>
									<option ${f:select("startday", "15")}>15</option>
									<option ${f:select("startday", "16")}>16</option>
									<option ${f:select("startday", "17")}>17</option>
									<option ${f:select("startday", "18")}>18</option>
									<option ${f:select("startday", "19")}>19</option>
									<option ${f:select("startday", "20")}>20</option>
									<option ${f:select("startday", "21")}>21</option>
									<option ${f:select("startday", "22")}>22</option>
									<option ${f:select("startday", "23")}>23</option>
									<option ${f:select("startday", "24")}>24</option>
									<option ${f:select("startday", "25")}>25</option>
									<option ${f:select("startday", "26")}>26</option>
									<option ${f:select("startday", "27")}>27</option>
									<option ${f:select("startday", "28")}>28</option>
									<option ${f:select("startday", "29")}>29</option>
									<option ${f:select("startday", "30")}>30</option>
									<option ${f:select("startday", "31")}>31</option>
								</select> 日 <select class="span1" name="starthour">
									<option ${f:select("starthour", "0")}>0</option>
									<option ${f:select("starthour", "1")}>1</option>
									<option ${f:select("starthour", "2")}>2</option>
									<option ${f:select("starthour", "3")}>3</option>
									<option ${f:select("starthour", "4")}>4</option>
									<option ${f:select("starthour", "5")}>5</option>
									<option ${f:select("starthour", "6")}>6</option>
									<option ${f:select("starthour", "7")}>7</option>
									<option ${f:select("starthour", "8")}>8</option>
									<option ${f:select("starthour", "9")}>9</option>
									<option ${f:select("starthour", "10")}>10</option>
									<option ${f:select("starthour", "11")}>11</option>
									<option ${f:select("starthour", "12")}>12</option>
									<option ${f:select("starthour", "13")}>13</option>
									<option ${f:select("starthour", "14")}>14</option>
									<option ${f:select("starthour", "15")}>15</option>
									<option ${f:select("starthour", "16")}>16</option>
									<option ${f:select("starthour", "17")}>17</option>
									<option ${f:select("starthour", "18")}>18</option>
									<option ${f:select("starthour", "19")}>19</option>
									<option ${f:select("starthour", "20")}>20</option>
									<option ${f:select("starthour", "21")}>21</option>
									<option ${f:select("starthour", "22")}>22</option>
									<option ${f:select("starthour", "23")}>23</option>
								</select> 時 <select class="span1" name="startminute">
									<option ${f:select("startminute", "00")}>00</option>
									<option ${f:select("startminute", "15")}>15</option>
									<option ${f:select("startminute", "30")}>30</option>
									<option ${f:select("startminute", "45")}>45</option>
								</select> 分
							</div>
						</div>
						<div class="control-group">
							<label class="control-label" for="enddate">終了日</label>
							<div class="controls">
								<select class="span1" name="endyear">
									<option ${f:select("endyear", "2012")}>2012</option>
									<option ${f:select("endyear", "2013")}>2013</option>
									<option ${f:select("endyear", "2014")}>2014</option>
									<option ${f:select("endyear", "2015")}>2015</option>
								</select>年 <select class="span1" name="endmonth">
									<option ${f:select("endmonth", "1")}>1</option>
									<option ${f:select("endmonth", "2")}>2</option>
									<option ${f:select("endmonth", "3")}>3</option>
									<option ${f:select("endmonth", "4")}>4</option>
									<option ${f:select("endmonth", "5")}>5</option>
									<option ${f:select("endmonth", "6")}>6</option>
									<option ${f:select("endmonth", "7")}>7</option>
									<option ${f:select("endmonth", "8")}>8</option>
									<option ${f:select("endmonth", "9")}>9</option>
									<option ${f:select("endmonth", "10")}>10</option>
									<option ${f:select("endmonth", "11")}>11</option>
									<option ${f:select("endmonth", "12")}>12</option>
								</select> 月 <select class="span1" name="endday">
									<option ${f:select("endday", "1")}>1</option>
									<option ${f:select("endday", "2")}>2</option>
									<option ${f:select("endday", "3")}>3</option>
									<option ${f:select("endday", "4")}>4</option>
									<option ${f:select("endday", "5")}>5</option>
									<option ${f:select("endday", "6")}>6</option>
									<option ${f:select("endday", "7")}>7</option>
									<option ${f:select("endday", "8")}>8</option>
									<option ${f:select("endday", "9")}>9</option>
									<option ${f:select("endday", "10")}>10</option>
									<option ${f:select("endday", "11")}>11</option>
									<option ${f:select("endday", "12")}>12</option>
									<option ${f:select("endday", "13")}>13</option>
									<option ${f:select("endday", "14")}>14</option>
									<option ${f:select("endday", "15")}>15</option>
									<option ${f:select("endday", "16")}>16</option>
									<option ${f:select("endday", "17")}>17</option>
									<option ${f:select("endday", "18")}>18</option>
									<option ${f:select("endday", "19")}>19</option>
									<option ${f:select("endday", "20")}>20</option>
									<option ${f:select("endday", "21")}>21</option>
									<option ${f:select("endday", "22")}>22</option>
									<option ${f:select("endday", "23")}>23</option>
									<option ${f:select("endday", "24")}>24</option>
									<option ${f:select("endday", "25")}>25</option>
									<option ${f:select("endday", "26")}>26</option>
									<option ${f:select("endday", "27")}>27</option>
									<option ${f:select("endday", "28")}>28</option>
									<option ${f:select("endday", "29")}>29</option>
									<option ${f:select("endday", "30")}>30</option>
									<option ${f:select("endday", "31")}>31</option>
								</select> 日 <select class="span1" name="endhour">
									<option ${f:select("endhour", "0")}>0</option>
									<option ${f:select("endhour", "1")}>1</option>
									<option ${f:select("endhour", "2")}>2</option>
									<option ${f:select("endhour", "3")}>3</option>
									<option ${f:select("endhour", "4")}>4</option>
									<option ${f:select("endhour", "5")}>5</option>
									<option ${f:select("endhour", "6")}>6</option>
									<option ${f:select("endhour", "7")}>7</option>
									<option ${f:select("endhour", "8")}>8</option>
									<option ${f:select("endhour", "9")}>9</option>
									<option ${f:select("endhour", "10")}>10</option>
									<option ${f:select("endhour", "11")}>11</option>
									<option ${f:select("endhour", "12")}>12</option>
									<option ${f:select("endhour", "13")}>13</option>
									<option ${f:select("endhour", "14")}>14</option>
									<option ${f:select("endhour", "15")}>15</option>
									<option ${f:select("endhour", "16")}>16</option>
									<option ${f:select("endhour", "17")}>17</option>
									<option ${f:select("endhour", "18")}>18</option>
									<option ${f:select("endhour", "19")}>19</option>
									<option ${f:select("endhour", "20")}>20</option>
									<option ${f:select("endhour", "21")}>21</option>
									<option ${f:select("endhour", "22")}>22</option>
									<option ${f:select("endhour", "23")}>23</option>
								</select> 時 <select class="span1" name="endminute">
									<option ${f:select("endminute", "00")}>00</option>
									<option ${f:select("endminute", "15")}>15</option>
									<option ${f:select("endminute", "30")}>30</option>
									<option ${f:select("endminute", "45")}>45</option>
								</select> 分
							</div>
						</div>
						<div class="form-actions">
							<button type="submit" class="btn btn-primary">登録</button>
						</div>
					</fieldset>
				</form>
			</div>
		</div>
	</div>
</body>
</html>
